import template from "@/echart/index";
import test from "@/test/index";

let list = Object.keys(test).map(k => {
  return {
    name: k,
    children: Object.keys(test[k]).map(x => {
      return {
        name: x,
        parent: k,
        lib: template[k][x.split("_")[0]],
        component: test[k][x]
      };
    })
  };
});

export default list;
